package StringExercise;

public class charAt {
    public static void main(String[] args) {
        String str = "MiHoYou";
        System.out.println(str.charAt(0));
        System.out.println(str.charAt(2));
        System.out.println(str.charAt(4));


        String str1 = "Tencent";
        System.out.println(str1.charAt(0));
        System.out.println(str1.charAt(str1.length() - 1));
    }
}
